<%--
  Created by IntelliJ IDEA.
  User: shisjin
  Date: 2023/10/16
  Time: 13:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"  %>
<%--<%@page import="com.example.wk6d1.bean.StudentBean" %>--%>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%-- <%--%>
<%--     StudentBean stu = new StudentBean();--%>
<%--     stu.setName("程咬金");--%>
<%--     stu.setClassName("22云计算应用1");--%>
<%--     stu.setAge(18);--%>
<%--     stu.setSex("男");--%>
<%--     stu.getName()--%>
<%-- %>--%>
 <jsp:useBean id="stu1" class="com.example.wk6d1.bean.StudentBean">
     <jsp:setProperty name="stu1" property="name" value="程咬金"></jsp:setProperty>
     <jsp:setProperty name="stu1" property="className" value="22云计算应用1"></jsp:setProperty>
     <jsp:setProperty name="stu1" property="age" value="18"></jsp:setProperty>
     <jsp:setProperty name="stu1" property="sex" value="男"></jsp:setProperty>
 </jsp:useBean>
 <br>
 姓名：<jsp:getProperty name="stu1" property="name"/>
 <br>
 班级：<jsp:getProperty name="stu1" property="className"/>
 <br>
年龄： <jsp:getProperty name="stu1" property="age"/>
 <br>
 性别：<jsp:getProperty name="stu1" property="sex"/>


</body>
</html>
